-
Notifications
You must be signed in to change notification settings - Fork 2
Structure improvements #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the project structure by reorganizing test setup files, updating configuration files, and making code quality improvements. The changes modernize the testing infrastructure and improve maintainability.
- Moved test setup files into a
test/helpers/directory for better organization - Updated ESLint configuration to use flat config format and target only source files
- Refactored package.json to use peer dependencies instead of direct dependencies and updated npm scripts
- Made minor code style improvements (quote consistency, semicolon placement)
- Dropped Node.js 18.x support, now requiring Node 20.x or 22.x
Reviewed Changes
Copilot reviewed 5 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/sourcePane.test.js | Updated import path to reference relocated setup file in helpers directory |
| test/helpers/setup.js | New test setup file with context exports (missing some expected exports) |
| test/helpers/jest.setup.js | New Jest setup configuration for test environment initialization |
| src/sourcePane.js | Minor code style fixes (quote consistency) and addition of unused pos variable |
| package.json | Restructured dependencies, updated scripts, and added files field for npm publishing |
| jest.config.js | Updated setup file path and added test coverage configuration |
| eslint.config.mjs | Migrated to flat config format with updated rules and file targeting |
| .github/workflows/ci.yml | Removed Node.js 18.x from test matrix |
Comments suppressed due to low confidence (3)
test/sourcePane.test.js:1
- The imported
docandsubjectvariables are not exported from './helpers/setup'. Onlycontextis exported. This will cause a runtime error when the test runs.
test/sourcePane.test.js:1 - Unused variable doc.
test/sourcePane.test.js:1 - Unused variable subject.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
This is part of the optimization work.
Drop node 18